swedish scientists analysed more than 10,000 families in the study .
58 children with diabetes had also been badly affected by previous events .
other factors include viral infection , diet and early weight gain .